package com.ruoyi.price.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 公式控件属性信息对象 tb_formula_widget_attr
 * 
 * @author ruoyi
 * @date 2023-04-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TbFormulaWidgetAttr extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 公式id */
    @Excel(name = "公式id")
    @NotNull(message = "公式id不能为空")
    private Long formualId;

    /** 控件id */
    @Excel(name = "控件id")
    @NotNull(message = "控件id不能为空")
    private Long widgetId;

    /** 属性名称 */
    @Excel(name = "属性名称")
    @NotBlank(message = "属性名称不能为空")
    private String attrName;

    /** 属性值 */
    @Excel(name = "属性值")
    @NotBlank(message = "属性值不能为空")
    private String attrValue;

    /** 状态(0:正常 1：停用) */
    @Excel(name = "状态(0:正常 1：停用)")
    private String status;

}
